package com.giscloud.dynamicsql.service;

import com.giscloud.dynamicsql.entity.DynamicSqlCfg;

import java.util.List;
import java.util.Map;

public interface DynamicSqlService {

    /**
     * 查询配置
     * @param urlType
     * @return
     */
    DynamicSqlCfg queryDynamicSqlCfg(String urlType);

    /**
     * 查询配置列表
     * @param dynamicSqlCfg
     * @return
     */
    List<DynamicSqlCfg> queryDynamicSqlCfgList(DynamicSqlCfg dynamicSqlCfg);

    /**
     * 动态执行sql
     * @param params
     * @return
     */
    List<Map<String,Object>> dynamicQuery(Map<String, Object> params);
}
